
#include"leecode1.h"

SLTNode* BuyNode(int e)
{
	SLTNode* newnode = (SLTNode*)malloc(sizeof(SLTNode));
	newnode->next = NULL;
	newnode->date = e;
	return newnode;
}

void SLTNodePushFront(SLTNode** pphead, int e)
{
	SLTNode* newnode = BuyNode(e);
	newnode->next = *pphead;
	*pphead = newnode;
}

void SLTNodePrint(SLTNode* phead)
{
	SLTNode* cur = phead;

	while (cur != NULL)
	{
		printf("%d->", cur->date);
		cur = cur->next;
	}
	printf("NULL");
}

void reverse(SLTNode** pphead)
{
	SLTNode* p = *pphead;
	SLTNode* q = *pphead->next;
	
}